import { Component } from '@angular/core';

import { AlertController, LoadingController, App, List, ModalController, NavController } from 'ionic-angular';

import { DemoDetailService } from './detail.service';

import { Config } from '../../../providers/config';

import _ from 'lodash';

@Component({
  selector: 'page-demo-detail',
  templateUrl: './detail.html',
  providers: [DemoDetailService]
})
export class DemoDetailPage {
	moa_page_name: any = "page-demo-detail";
  constructor(
    public alertCtrl: AlertController,
    public app: App,
    public loadingCtrl: LoadingController,
    public modalCtrl: ModalController,
    public navCtrl: NavController,
    public detailService: DemoDetailService,
    public config: Config
  ) {

    let loading = this.loadingCtrl.create({
      spinner: 'hide',
      content: '正在下载文件,请稍候...<br/>已完成：<span class="gfoa-download-percentage">0%</span > ',
      duration: 2000000000
    });

    loading.onDidDismiss(() => {
      console.log('Dismissed loading');
    });

    loading.present();




  }

}
